package com.jss.jssmybatisplus.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import java.util.List;

/**
 * @Author Shuaishuai.Ji
 * @Date 2022/8/24 14:30
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageInfoDto {
    private static final String ASC = "ASC";
    private static final String DESC = "DESC";
    private static final long serialVersionUID = 1L;
    @Min(0L)
    private int pageNum = 1;
    @Range(
        min = 1L,
        max = 10000L
    )
    private int pageSize = 100;
    private String sortBy;
    private String pageRemark;
}
